import { FC } from 'react'
import { Button, Flex } from 'antd'
import { hideLoading, showLoading } from '@/utils/loading'
// 测试loading
const TestLoadding: FC = () => {
  return (
    <Flex>
      <Button
        type="primary"
        onClick={() => {
          showLoading()
          setTimeout(() => {
            hideLoading()
          }, 2000)
        }}
      >
        Loading
      </Button>
    </Flex>
  )
}
export default TestLoadding
